
package com.uduew.sjd.ui.adapter;

import android.content.Context;

import androidx.recyclerview.widget.RecyclerView;

import com.uduew.sjd.R;
import com.uduew.sjd.api.GetBankInfoApi;
import com.uduew.sjd.databinding.LayoutBankListBinding;
import com.uduew.sjd.utils.DiffUtils;
import com.kunminx.binding_recyclerview.adapter.SimpleDataBindingAdapter;


public class BankListAdapter extends SimpleDataBindingAdapter<GetBankInfoApi.HesitancyBean, LayoutBankListBinding> {


    public BankListAdapter(Context context) {
        super(context, R.layout.layout_bank_list, DiffUtils.getInstance().getBankItemCallback());
    }

    @Override
    protected void onBindItem(LayoutBankListBinding binding, GetBankInfoApi.HesitancyBean item, RecyclerView.ViewHolder holder) {
        binding.setList(item);
    }
}
